
import Plugins.IDataPlugin;
import Common.IProjectModel;
import Plugins.IPlugin;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Администратор
 */
public class MySQLDataBaseProvider implements IDataPlugin {

    String login;
    String password;
    int port;
    String IP;
    String connectionString;

    // <editor-fold defaultstate="collapsed" desc="IDataPlugin Initialize">

    public void setLogin(String login) {
        this.login = login;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public void setIPAddress(String address) {
        this.IP = address;
    }

    public String getName() {
        return "MySQL";
    }

    public String getType() {
        return this.getClass().getName();
    }

    public void LoadProjects(IProjectModel projectModel) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void SaveProjects(IProjectModel projectModel) {
        throw new UnsupportedOperationException("Not supported yet.");
    }

    public void Unloading() {
        this.IP="";
        this.connectionString="";
        this.login="";
        this.password="";
        this.port=-1;
    }

    public IPlugin Loading() {
        return new MySQLDataBaseProvider();
    }
    // </editor-fold>
}
